<!DOCTYPE html>
<html>
	<head>
	<meta charset="utf-8"/>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
	<title>消息测试</title>
	<script type="text/javascript">
		console.log('message刚开始进来');
document.addEventListener( "plusready", function(){
	 console.log('plusready刚开始进来')
     message = document.getElementById("message");
     // 监听在线消息事件
     plus.push.addEventListener( "receive", function( msg ) {
		 console.log('receive刚开始进来')
        var info = plus.push.getClientInfo();
        var jsonStr=msg.content;
		console.log('message进来');
	//      if ( msg.aps ) {  // Apple APNS message
	//          alert("接收到在线APNS消息：111" );
	//         outSet( "接收到在线APNS消息：" );
	//      } else {
	//       //alert("接收到在线透传消息："  );
	//          var jsonStr=msg.content;
	//             var content=JSON.parse(jsonStr)
	//         //alert(content.type); alert(content.clientid);
	//           outSet( "接收到在线透传消息：" );
	//      }
	},false)
},false)
	</script>
	</head>
	<body>
	</body>
</html>